Skip to content

Conversation

@afonsojramos
Copy link
Contributor

Fixes #330.

The last two steps I can't really replicate here as I am not sure how to replace it with, happy to change anything!

Copy link

@konrad-jamrozik konrad-jamrozik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment on lines +38 to +48
- name: pack
run: npm pack

- name: Copy Files to target-folder
run: mkdir -p ${{ matrix.target-folder }} && cp *.tgz ${{ matrix.target-folder }}

- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
name: ${{ matrix.target-folder }}
path: ${{ matrix.target-folder }}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the benefit of doing npm pack and the remaining steps?

I think they may have made sense in the context of uploading tests results to Azure DevOps pipeline and/or publishing the package, but if we make this GH action go up to test and no later, will uploading artifacts help? Will it somehow integrate with GitHub UI for nice test viewing experience or similar? If not, perhaps we can remove it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it does!

Example here in a repo I also maintain: https://github.com/gitify-app/gitify/actions/runs/9626236252

You can see all of the artifacts of a given workflow, which is something that I'd say would be nice to keep!

run: mkdir -p ${{ matrix.target-folder }} && cp *.tgz ${{ matrix.target-folder }}

- name: Upload Artifact
uses: actions/upload-artifact@v2
Copy link

@konrad-jamrozik konrad-jamrozik Jul 2, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The @v2 of actions/upload-artifact is deprecated since 6/30/2024, i.e. yesterday:

https://github.com/actions/upload-artifact#actionsupload-artifact

I can fix it in a future PR.

@konrad-jamrozik konrad-jamrozik enabled auto-merge (squash) July 2, 2024 03:08
@konrad-jamrozik konrad-jamrozik merged commit 9f15b93 into Azure:main Jul 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Migrate test pipelines to GH actions

2 participants